package com.pony.iphone.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author admin
 */
@Component
public class QuestionDefaultConfig {
    
    private static String defaultLibraryName;

    @Value("${question.default.library:iphone}")
    public void setDefaultLibraryName(String libraryName) {
        QuestionDefaultConfig.defaultLibraryName = libraryName;
    }

    /**
     * 获取默认库名
      * @return
     */
    public static String getDefaultLibraryName() {
        return defaultLibraryName;
    }
}